package com.csweimei.rentmanagementtreasure.http.entity;

import com.google.gson.annotations.SerializedName;

public class UserInfoEntity extends BaseResult{
    @SerializedName("data")
    private DataDTO data;

    public DataDTO getData() {
        return data;
    }

    public void setData(DataDTO data) {
        this.data = data;
    }

    public static class DataDTO {
        @SerializedName("userid")
        private int userid;
        @SerializedName("headimg")
        private String headimg;
        @SerializedName("name")
        private String name;
        @SerializedName("sex")
        private String sex;
        @SerializedName("birthday")
        private String birthday;
        @SerializedName("IDCard")
        private String iDCard;
        @SerializedName("phone")
        private String phone;
        @SerializedName("WeChat")
        private String weChat;
        @SerializedName("QRcodeSrc")
        private String qRcodeSrc;
        @SerializedName("addtime")
        private String addtime;

        public int getUserid() {
            return userid;
        }

        public void setUserid(int userid) {
            this.userid = userid;
        }

        public String getHeadimg() {
            return headimg;
        }

        public void setHeadimg(String headimg) {
            this.headimg = headimg;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getSex() {
            return sex;
        }

        public Boolean isMan(){
            if (getSex().equals("男")){
                return true;
            }else {
                return false;
            }
        }

        public Boolean isWMan(){
            if (getSex().equals("女")){
                return true;
            }else {
                return false;
            }
        }

        public void setSex(String sex) {
            this.sex = sex;
        }

        public String getBirthday() {
            return birthday;
        }

        public void setBirthday(String birthday) {
            this.birthday = birthday;
        }

        public String getIDCard() {
            return iDCard;
        }

        public void setIDCard(String iDCard) {
            this.iDCard = iDCard;
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public String getWeChat() {
            return weChat;
        }

        public void setWeChat(String weChat) {
            this.weChat = weChat;
        }

        public String getQRcodeSrc() {
            return qRcodeSrc;
        }

        public void setQRcodeSrc(String qRcodeSrc) {
            this.qRcodeSrc = qRcodeSrc;
        }

        public String getAddtime() {
            return addtime;
        }

        public void setAddtime(String addtime) {
            this.addtime = addtime;
        }
    }
}
